package com.lzk.controller;

import com.lzk.domain.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.lzk.service.IEmpService;

@RestController
@RequestMapping("emp")
public class EmpController {

    @Autowired
    private IEmpService empService;

    @RequestMapping("getbyid/{id}")
    public Emp getById(@PathVariable("id") Integer id){
        return empService.getById(id);
    }
}
